package com.chentf.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chentengfei
 * @desc ...
 * @date 2021-09-12 11:34:33
 */
@RestController
public class OrdersController {
    private static final Logger log = LoggerFactory.getLogger(OrdersController.class);

    @Value("${server.port}")
    private int port;

    @GetMapping("order")
    public String demo(){
        log.info("order demo....");
        return "order demo ok!!!,当前提供服务端口号为:"+port;
    }
}
